using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ShopNpc : MonoBehaviour, Iinteractable
{

    public GameObject NpcDialog;
    private Collider2D collider;

    private void OnEnable()
    {
        collider = GetComponent<Collider2D>(); 
        NpcDialog.SetActive(false);
    }

    private void OnTriggerExit2D(Collider2D collision)
    {
        NpcDialog.SetActive(false);
    }

    public void TriggerAction()
    {
        NpcDialog.SetActive(true);
    }
}
